/* model */
import { RoleAuth } from "@model/entity/Role/Role"
import { SHBProductLineEnum } from "@shb-lib/tenant"

export type RoleUserListModel = {
  enabled: string;
  keyword: string;
  pageNum: number | string;
  pageSize: number | string;
  roleId: string;
  roleType: string;
}

export type RoleAddUserListModel = {
  roleId: string;
  userIdList: string;
}

export type RoleBatchDeleteUserModel = {
  roleId: string;
  userIdList: string;
}

export type RoleBatchDeleteRoleModel = {
  id: string;
}

export type RoleBatchAllotRolesModel = {
  // , 分隔
  roleIdList: string;
  // , 分隔
  userIdList: string;
}

export type RoleAuthModel = {
  roleId: string;
}

export type RoleAuthSaveModel = {
  // 角色id
  roleId: string;
  // 租户id
  tenantId?: string;
  // 用户id
  userId?: string;
  // 描述
  describe: string;
  // 角色名称
  name: string;
  // 关联的角色id
  relationRoleId?: string;
  
  authorityBOList: RoleAuth[];
  
  dimensionType?:number; // 服务商角色特有
  
  providerId?:any
  
  // 产品线
  productLine: SHBProductLineEnum;
  qualificationIds:any[];
}

export type RoleTreeGetModel = {}

export type RoleResetModel = {
  id: string;
}

export type RoleCheckNameModel = {
  name: string;
}

export type RoleAutoAuthSaveModel = {
  state: boolean;
  roleId: string;
}

export type RoleQueryShieldPhoneModel = {
  roleId: string;
}

export type RoleDisPlayOrHidePhoneModel = {
  id: string;
}

export type RoleTenantGetBuyAndUseUserNumModel = {
  // 产品线
  productLine: SHBProductLineEnum | string
}
